package tgc.edu.exam.entity;

import java.util.UUID;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Transient;

import org.springframework.data.annotation.CreatedBy;

import tgc.edu.exam.custom.BaseEntity;

/***
 * 考勤记录
 * 
 * @author Administrator
 *
 */
@Entity
public class Checkingin extends BaseEntity<UUID> {
	private String curriculumName;
	private Student student;
	/***
	 * 格式 yyyy-MM-dd HH:mm:ss
	 */
	private String time;// 时间
	private String bjuuid;
	private String banji;
	private String isReach;// 是否签到
	private UUID curriculumPlan;
	/** 年月日 **/
	private String dates;
	@ManyToOne
	@CreatedBy
	public Student getStudent() {
		return student;
	}

	public void setStudent(Student student) {
		this.student = student;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getBjuuid() {
		return bjuuid;
	}

	public void setBjuuid(String bjuuid) {
		this.bjuuid = bjuuid;
	}

	public String getBanji() {
		return banji;
	}

	public void setBanji(String banji) {
		this.banji = banji;
	}

	public String getIsReach() {
		return isReach;
	}

	public void setIsReach(String isReach) {
		this.isReach = isReach;
	}
	
	public String getCurriculumName() {
		return curriculumName;
	}

	public void setCurriculumName(String curriculumName) {
		this.curriculumName = curriculumName;
	}

	@Transient
	public String getStudentName(){
		return student==null?null:student.getName();
	}

	public String getDates() {
		return dates;
	}

	public void setDates(String dates) {
		this.dates = dates;
	}

	public UUID getCurriculumPlan() {
		return curriculumPlan;
	}

	public void setCurriculumPlan(UUID curriculumPlan) {
		this.curriculumPlan = curriculumPlan;
	}

	
}
